<?php
$toolbar    =new ToolBarHelper($act);
$toolbar->setSubmitAjax(true);
if($act=="add" )
{
    $toolbar->SetTitle('[Add Group]');
    $toolbar->Back(getUrlBack());
    $toolbar->Save();
}
else if($act=="edit")
{
    $toolbar->SetTitle('[Edit Group]');
    $toolbar->Back(getUrlBack());
    $toolbar->Apply();
    $toolbar->Save();
}
else
{
    $toolbar->setSubmitAjax(false);
    //$toolbar->Delete();
    //$toolbar->Apply();
    $toolbar->addUser('add','Add Group','id='.$id);
}
?>